package com.mycompany.oj.entity;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import lombok.Data;

/**
 *
 * @author wucy
 */
@Data
public class ZhangjieInformation {

    public String name;
    public String id;
    public String endDate;
    public String state;
    public String goal;
    public String section_num;
    public List<Map<String, String>> question = new ArrayList<>();

    public ZhangjieInformation(String zhangjie_name, String zhangjie_hao, String zhangjie_endtime, String gogal, String section_num) {
        this.name = zhangjie_name;
        this.id = zhangjie_hao;
        this.endDate = zhangjie_endtime;
        this.goal = gogal;
        this.section_num = section_num;
    }
    //要放题目名字，题目ID，题目的提交时间,题目是否正确

    public void init_zhangjie_question(List<Map<String, String>> temp) {
        temp.stream().forEach(x -> this.question.add(x));
    }
}
